package net.xiangcaowuyu.redis.controller;

import net.xiangcaowuyu.redis.utils.RedisUtils;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * redis测试
 * @author laughing
 * @date 2020/10/2
 * @site https://www.xiangcaowuyu.net
 */
@RestController
public class RedisController {

    @Resource
    RedisUtils redisUtils;

    @RequestMapping("setValue")
    public String setValue(){
        String key = "name";
        String value = "香草物语";
        redisUtils.setValue(key,value);
        return "1";
    }

}
